<?php
namespace app\admin\validate;

use think\Validate;

class Message extends Validate
{
    protected $rule = [
        'title' => 'require',
        'content' => 'require',
        'status' => 'require|number',
    ];

    protected $message = [
        'title.require' => '标题不能为空',
        'content.require' => '内容不能为空',
        'status.require' => '状态不能为空',
        'status.number' => '状态必须为数字',
    ];
}
